#!/bin/bash

# https://www.cnblogs.com/uglyliu/p/12605259.html

rm *.log

parallel()
{
	./add.sh 1 &
	./add.sh 2 &
}

serial()
{
	flock ./aa.log -c "./add.sh 1 &"
	flock ./aa.log -c "./add.sh 2 &"
}

parallel
#serial
